package com.study.selection.service;

import com.study.selection.model.Select;
import org.springframework.stereotype.Service;

import java.util.List;

public interface SelectService {
    List<Select> findAll();

    List<Select> findByKey(String key);

    boolean addSelect(Select select);

    Select getBySelectId(int selectId);

    //根据学生学号查询
    List<Select> getByStudentId(int studentId);

    //根据课程号查询
    List<Select> getByCourseId(int courseId);

    //根据教师编号查询
    List<Select> getByTeacherId(int teacherId);

    boolean updateSelect(Select select);
    // 逻辑删除
    boolean deleteSelect(int selectId);
}
